package com.xiaoyin.community.Repository;

import com.xiaoyin.community.Domain.Candicate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yinjianping@baidu.com on 2018/7/11.
 *
 * @Description:
 * @Modified By:
 */
@Component
public interface CandicateRepository extends JpaRepository<Candicate,Integer> {

    List<Candicate> findByCandicateName(String candicateName);
    List<Candicate> findByCandicateNameAndCandicateClass(String candicateName,String candicateClass);
    List<Candicate> findByCandicateNameOrCandicatePhone(String candicateName,String candicatePhone);
}
